import request from '@/utils/request'

// 查询意见反馈管理列表
export function listAdvice(query) {
  return request({
    url: '/user/advice/list',
    method: 'get',
    params: query
  })
}
export function listAdviceByNoReply(query) {
  return request({
    url: '/user/advice/listByNoReply',
    method: 'get',
    params: reply
  })
}

// 查询意见反馈管理详细
export function getAdvice(id) {
  return request({
    url: '/user/advice/' + id,
    method: 'get'
  })
}

// 新增意见反馈管理
export function addAdvice(data) {
  return request({
    url: '/user/advice',
    method: 'post',
    data: data
  })
}

// 修改意见反馈管理
export function updateAdvice(data) {
  return request({
    url: '/user/advice',
    method: 'put',
    data: data
  })
}

// 删除意见反馈管理
export function delAdvice(id) {
  return request({
    url: '/user/advice/' + id,
    method: 'delete'
  })
}
